package com.wanpinghui.wphlibrary.model.oauth.bean;

import java.io.Serializable;

/***
 * 功能描述: 项目所属客户信息(简单用户信息)
 * 作者:qiujialiu
 * 时间:2017/11/23
 ***/
public class BaseUserBean implements Serializable{
    public static final int GENDER_MALE = 1;
    public static final int GENDER_FEMALE = 0;
    /**
     * id : 235
     * mobile : 15698000297 // 工程商登录，且该工程商抢单成功才有
     * nickname : 万先生
     * gender : 0
     * im_token : sdfsfdwe
     */
    protected String id;
    protected String mobile;
    protected String nickname;
    protected int gender;
    protected String im_token;

    public String getId() {
        return id;
    }

    public int getIntId() {
        return Integer.parseInt(id);
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getIm_token() {
        return im_token;
    }

    public void setIm_token(String im_token) {
        this.im_token = im_token;
    }

    public boolean isMale() {
        return gender == GENDER_MALE;
    }
}
